<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<div class="container-fluid">
<div class="row-fluid">
<div class="span2"></div>
<div class="span8">
<div class="row-fluid">
<div class="8">
<!-- register form -->
    <s:form theme = "simple" cssClass="form-horizontal" action="userregister" method="post" validate="true">
  		<div class="control-group">
  		<div class="controls">
  		<h4>Register</h4>
  		</div></div>
  		<div class="control-group">
  		<div class="controls">
  		<s:if test="hasFieldErrors()">
   			<div class="alert alert-error span8">
  		 		<s:fielderror><s:param>remail</s:param></s:fielderror>
  		 		<s:fielderror><s:param>rpassword</s:param></s:fielderror>
  		 		<s:fielderror><s:param>rphone</s:param></s:fielderror>
  		 		<s:fielderror><s:param>alreadyregistered</s:param></s:fielderror>
   			</div>
		</s:if> 
		</div>
		</div>
  		<div class="control-group">
  		<div class="controls">
  		<s:textfield name="remail" cssClass="input-large" placeholder="Enter Email"></s:textfield>
  		</div></div>
  		<div class="control-group">
  		<div class="controls">
  		<s:password name="rpassword" cssClass="input-medium" placeholder="Enter Password"></s:password>
  		</div></div>
  		<div class="control-group">
  		<div class="controls">
  		<s:textfield name="rphone" cssClass="input-medium" placeholder="Enter Phone"></s:textfield>
  		</div></div>
  		<div class="control-group">
  		<div class="controls">
  		<s:submit name="register" theme = "simple" cssClass="btn btn-success" value="Register"></s:submit>
  		</div>
  		</div>
  		<!-- terms and condition check box will be made later -->
	</s:form>
    <!-- register form ends here-->
    </div>
    <div class="span4">
    <!-- some additional info -->
    </div>
    </div>
</div>
<div class="span2"></div>
</div>
</div>
